﻿@model HotelMgr.Models.Order
@using Telerik.Web.Mvc.UI
@using HotelMgr.Models
@{
    ViewBag.Title = "Delete";
}
<h3 style="text-align: center;font-size: 18px;font-weight: bolder;color: red;">是否确定删除此订单?</h3>

@Html.HiddenFor(o=>o.OrderID)
<table width="100%">
    <tr>
        <th width="10%">@Html.LabelFor(o => o.Customer.Name)
        </th>
        <td width="40%">@Html.DisplayFor(o => o.Customer.Name)
        </td>
        <th width="10%">@Html.LabelFor(o => o.Customer.Sex)
        </th>
        <td width="40%">@Html.DisplayFor(o => o.Customer.Sex)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.Customer.IDCard)
        </th>
        <td>@Html.DisplayFor(o => o.Customer.IDCard)
        </td>
        <th>@Html.LabelFor(o => o.Customer.Phone)
        </th>
        <td>@Html.DisplayFor(o => o.Customer.Phone)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.PeopleNumber)
        </th>
        <td>@Html.DisplayFor(o => o.PeopleNumber)
        </td>
        <th>@Html.LabelFor(o => o.OrderTime)
        </th>
        <td>@Html.DisplayFor(o => o.OrderTime)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.CheckInTime)
        </th>
        <td>@Html.DisplayFor(o => o.CheckInTime)
        </td>
        <th>@Html.LabelFor(o => o.CheckOutTime)
        </th>
        <td>@Html.DisplayFor(o => o.CheckOutTime)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.Status)
        </th>
        <td colspan="3">@Html.DisplayFor(o => o.Status)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.Comment)
        </th>
        <td colspan="3">@Html.DisplayFor(o => o.Comment)
        </td>
    </tr>
</table>
<br />
@{
    Html.Telerik().Grid(Model.Rooms).Name("OrderCancelGrid")
        .Columns(o=>
                     {
                         o.Bound(i => i.RoomID);
                         o.Bound(i => i.Price);
                     })
                     .Render();
}
<p class="OrderState" style="text-align: right; font-size: 20px; font-weight: bold;">
    ￥@Model.Rooms.Sum(c => c.Price)
</p>
<div style="text-align: center;font-size: 16px;font-weight: bolder;">
    @Html.ActionLink("删除","OrderDelete","OrderManager",new {id=Model.OrderID},null)|
    @Html.ActionLink("返回", "Index")
</div>

